﻿using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    [DataContract]
    public partial class StatStockView : BusinessBase<string>
    {
        #region Declarations

        private string _goodsName = String.Empty;
        private string _warehouseCode = String.Empty;
        private string _warehouseName = String.Empty;
        private int _sumPkgQty = default(Int32);
        private int _sumPieceQty = default(Int32);
        private int _sumTotalQty = default(Int32);

        #endregion

        #region Constructors

        public StatStockView() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_goodsName);
            sb.Append(_sumPkgQty);
            sb.Append(_sumPieceQty);
            sb.Append(_sumTotalQty);
            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties


        [DataMember]
        public virtual string GoodsName
        {
            get { return _goodsName.TrimEnd(); }
            set
            {
                _goodsName = value;
            }
        }

        [DataMember]
        public virtual string WarehouseCode
        {
            get { return _warehouseCode.TrimEnd(); }
            set
            {
                _warehouseCode = value;
            }
        }

        [DataMember]
        public virtual string WarehouseName
        {
            get { return _warehouseName.TrimEnd(); }
            set
            {
                _warehouseName = value;
            }
        }

        [DataMember]
        public virtual int SumPkgQty
        {
            get { return _sumPkgQty; }
            set
            {
                _sumPkgQty = value;
            }
        }

        [DataMember]
        public virtual int SumPieceQty
        {
            get { return _sumPieceQty; }
            set
            {
                _sumPieceQty = value;
            }
        }

        [DataMember]
        public virtual int SumTotalQty
        {
            get { return _sumTotalQty; }
            set
            {
                _sumTotalQty = value;
            }
        }
        #endregion

    }
}
